package com.yn.xr.middleware.news.service.impl;

import javax.annotation.Resource;

import com.yn.core.service.impl.BaseServiceImpl;
import com.yn.xr.middleware.news.service.NewCommentProveService;
import com.yn.xr.news.dao.NewsCommentApproveInfoDao;
import com.yn.xr.news.mode.NewsCommentApproveInfo;

public class NewCommentProveServiceImpl extends
		BaseServiceImpl<NewsCommentApproveInfo, Integer> implements
		NewCommentProveService {

	@Resource
	private NewsCommentApproveInfoDao newsComentProveDao;

	@Override
	public NewsCommentApproveInfo findNewsCommentProveByComentId(int commentId)
			throws Exception {
		return newsComentProveDao.findById(commentId);
	}

	@Override
	public void insertNewsCommentProve(NewsCommentApproveInfo newsCommentProve)
			throws Exception {
		newsComentProveDao.save(newsCommentProve);
	}

	@Override
	public void updateNewsCommentProve(NewsCommentApproveInfo newsCommentProve)
			throws Exception {
		newsComentProveDao.update(newsCommentProve);
	}

}
